-- GENERATED SPELL FOR [Shattrath City Peacekeeper] --


function spell0_19687(pUnit, Event) --@Revenge,n/a--
pUnit:FullCastSpellOnTarget(12170,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19687', 648, 1)
end

function spell1_19687(pUnit, Event) --@Shield Block,Self--
pUnit:FullCastSpellOnTarget(12169,pUnit)
pUnit:RegisterEvent('Sorts_19687', 5281, 1)
end

function Sorts_19687(pUnit, Event)
local choix_sorts_19687 = math.random(0, 1)
if choix_sorts_19687 == 0 then
pUnit:RegisterEvent('spell0_19687', 1, 1)
end
if choix_sorts_19687 == 1 then
pUnit:RegisterEvent('spell1_19687', 1, 1)
end
end

function mob19687_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19687', math.random(1500, 3000), 1)
end

function mob19687_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19687_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19687_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19687, 1, 'mob19687_Action')
RegisterUnitEvent(19687, 2, 'mob19687_Leave')
RegisterUnitEvent(19687, 3, 'mob19687_Kill')
RegisterUnitEvent(19687, 4, 'mob19687_Die')
